<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">诚信记录</h1>
</div>
<div class="wrapper-sm" ng-controller="carEvaluateManagentController" >
	<uib-tabset active="6" class="tab-container" ng-init="steps={percent:35, step1:false, step2:false, step3:false, step4:false, step5:false, step6:true}">
		<uib-tab  heading="基本信息"  select="steps.percent=35" ui-sref="app.car.carManagent_edit">
			<uib-progressbar value="35" class="progress-xs" type="success"></uib-progressbar>
		</uib-tab>
		
		<uib-tab heading="资质信息"  disabled="step1.$invalid" select="steps.percent=55" ui-sref="app.car.carAttachmentEdit"></uib-tab>
		<uib-tab heading="账户信息"  disabled="step2.$invalid" select="steps.percent=75" ui-sref="app.car.carBankCardManagent"></uib-tab>
		<uib-tab heading="主营线路"  select="steps.percent=100" ui-sref="app.car.carRouteManagent"></uib-tab>
		<uib-tab heading="交易记录"  disabled="step4.$invalid" select="steps.percent=80" ui-sref="app.car.carTradingRecord"></uib-tab>
		<uib-tab heading="诚信记录" index="6"  disabled="step5.$invalid" select="steps.percent=100" ui-sref="app.car.carEvaluateManagent">
			<div class="wrapper-sm" >
				<i class="glyphicon glyphicon-user m-l-xs m-r-xs m-b-xs text-lg text-danger"></i>评分：<label class="text-danger">{{average / totalItems | number:1 }}分</label><br/>
				<label class="curpoint">全部（<label class="curpoint text-danger">{{total}}</label>）</label> / <label class="curpoint" ng-model="praiseCount">好评（<label class="curpoint text-danger">{{praiseCount}}</label>）</label>
				/ <label class="curpoint">差评（<label class="curpoint text-danger">{{total - praiseCount}}</label>）</label>
				<div ng-repeat="item in evaluateList track by $index ">
					<div class="panel panel-default">
						<div class="panel-heading">
							<div class="text-md">
								<label>{{item.average}}</label>
								<span uib-rating ng-init="average=item.average/2" ng-model="item.averageStar" read-only="true"
									aria-labelledby="default-rating" max="5" state-on="'fa fa-star text-warning'" state-off="'fa fa-star-o btn-link'">
								</span> 
									<b class="text-danger">({{item.appraiser}})</b>
								<label class="pull-right">{{item.creationTime}}</label>
							</div>
						</div>
						<div class="panel-body">
							<div class="col-md-3 form-group text-base">
								<label>诚信度</label>
								<span uib-rating ng-init="credibility=item.credibility/2" ng-model="item.credibilityStar" read-only="true"
									max="5" state-on="'fa fa-star text-warning'" state-off="'fa fa-star-o btn-link'">
								</span> 
								<b class="text-danger">({{item.credibility}})</b>
							</div>
							<div class="col-md-3 form-group text-base">
								<label>时效性</label>
								<span uib-rating ng-init="timeliness=item.timeliness/2" ng-model="item.timelinessStar" read-only="true" max="5"
									state-on="'fa fa-star text-warning'" state-off="'fa fa-star-o btn-link'"></span> <b class="text-danger">({{item.timeliness}})</b>
							</div>
							<div class="col-md-3 form-group text-base">
								<label>服务态度</label>
								<span uib-rating ng-init="attitude=item.attitude/2" ng-model="item.attitudeStar" read-only="true" max="5"
									state-on="'fa fa-star text-warning'" state-off="'fa fa-star-o btn-link'"></span> <b class="text-danger">({{item.attitude}})</b>
							</div>
							<div class="col-md-3 form-group text-base">
								<label>运输价格</label>
								<span uib-rating ng-init="freight=item.freight/2" ng-model="item.freightStar" read-only="true" max="5" state-on="'fa fa-star text-warning'"
									state-off="'fa fa-star-o btn-link'"></span> <b class="text-danger">({{item.freight}})</b>
							</div>
							<div class="line line-dashed b-b line-lg "></div>
							<label class="control-label pull-left m-t-xs">{{item.content}}</label>
						</div>
					</div>
				</div>
				<div>
					<ul uib-pagination 
						max-size="max" 
						ng-change="pageChanged(currentPage)" 
						total-items="totalItems*2" 
						ng-model="currentPage" 
						class="pagination-sm"
						rotate="false"
						previous-text="&lsaquo;" 
						next-text="&rsaquo;" 
						first-text="&laquo;" 
						last-text="&raquo;">
					</ul>
				</div>
			</div>

		</uib-tab>
	</uib-tabset>
</div>